package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 销售详情实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_orderinfo")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 采购详情编号*/
    @TableId(value = "pk_orderInfoId", type = IdType.AUTO)
    private Integer orderInfoId;

    /** 采购数量*/
    @TableField("o_inInfoNum")
    private Integer inInFoNum;

    /** 采购单ID*/
    @TableField("fk_orderId")
    private Integer orderId;

    /** 商品ID*/
    @TableField("fk_productId")
    private Integer productId;

    /** 采购人对象*/
    @TableField(exist = false)
    private User user;

    /** 商品对象*/
    @TableField(exist = false)
    private  Product product;

    @TableField(exist = false)
    private  Factory factory;

    @TableField(exist = false)
    private  Order order;


}
